package com.springboot.controller;

import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/view")
@Slf4j
public class ViewController {

    @GetMapping("/get")
    public String index(){
        JSONObject json = new JSONObject();
        String result = "html >>19111>>>";
        json.put("result",result);
        System.out.println("html >>19111>>>");
        return json.toJSONString();
    }
}
